<html>
	<head>
		<title>Newton Game Dynamics DBPro Wrapper v1.53</title></head>
	<body alink="#fa634e" bgcolor="#efeff9" link="#3646fc" text="#000000" vlink="#ff6633">
		<H1>Newton SDK DBPro Wrapper v1.53</H1>
		<P>By Walaber<BR>
		   All Coding between 1.31-1.32B by Kjelle<BR>
		   Updated to 1.53 by Tiresius</P>
        <p><a href="ndb_docs_main.htm">Main Index of Commands</a></p>
			<h2>Joints</h2>
			<a name="NDB_SetHingeLimits"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetHingeLimits</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: NDB_SetHingeLimits
								hinge, min, max</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">hinge</td>
											<td>index of the hinge (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min</td>
											<td>min rotational limit (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max</td>
											<td>max rotational limit (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the rotational limits for the specified
							hinge joint. To remove limits, set them to zero.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetHingeMotorAccel"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetHingeMotorAccel</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetHingeMotorAccel hinge, motor_accel</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">hinge</td>
											<td>index of the hinge (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">motor_accel</td>
											<td>motor acceleration value (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the motor acceleration value for the
							specified hinge joint.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetHingeMin"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetHingeMin</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetHingeMin( hinge )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">hinge</td>
											<td>index of the hinge (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float minimum angle for the hinge</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min value set to the hinge with
							the <a href="#NDB_HingeSetLimits">NDB_HingeSetLimits</a> function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetHingeMax"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetHingeMax</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetHingeMax( hinge )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">hinge</td>
											<td>index of the hinge (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float maximum angle for the hinge</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max value set to the hinge with
							the <a href="#NDB_HingeSetLimits">NDB_HingeSetLimits</a> function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetHingeMotorAccel"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetHingeMotorAccel</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetHingeMotorAccel( hinge )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">hinge</td>
											<td>index of the hinge (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float motor acceleration for the
								hinge</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the motor acceleration value set to
							the hinge with the <a href="#NDB_HingeSetMotorAccel">NDB_HingeSetMotorAccel</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetSliderLimits"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetSliderLimits</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetSliderLimits slider, min, max</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">slider</td>
											<td>index of the slider (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min</td>
											<td>min limit (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max</td>
											<td>max limit (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the limits for the specified slider
							joint.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetSliderMotorAccel"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetSliderMotorAccel</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetSliderMotorAccel slider, motor_accel</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">slider</td>
											<td>index of the slider (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">motor_accel</td>
											<td>motor acceleration value (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the motor acceleration value for the
							specified slider joint.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetSliderMin"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetSliderMin</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetSliderMin( slider )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">slider</td>
											<td>index of the slider (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float minimum distance for the
								slider</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min value set to the slider with
							the <a href="#NDB_SliderSetLimits">NDB_SliderSetLimits</a> function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetSliderMax"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetSliderMax</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetSliderMax( slider )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">slider</td>
											<td>index of the slider (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float maximum distance for the
								slider</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max value set to the slider with
							the <a href="#NDB_SlidereSetLimits">NDB_SliderSetLimits</a> function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetSliderMotorAccel"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetSliderMotorAccel</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetSliderMotorAccel( slider )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">slider</td>
											<td>index of the slider (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float motor acceleration for the
								slider</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the motor acceleration value set to
							the slider with the <a href="#NDB_SliderSetMotorAccel">NDB_SliderSetMotorAccel</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetCorkscrewLimits"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetCorkscrewLimits</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetCorkscrewLimits corkscrew, min_angle, max_angle, min_dist, max_dist</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min_angle</td>
											<td>max rotational angle (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max_angle</td>
											<td>min rotational angle (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min_dist</td>
											<td>max linear distance (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max_dist</td>
											<td>min linear distance (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the limits for a corkscrew joint. To
							disable limits for one of the parts, set the limits for that part to zero.</td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>EXAMPLE 1:</b> set a corkscrew with rotational limits of
							(-45,45) and linear limits of (0, 10)<br>
							<font face="monospace"><b>NDB_SetCorkscrewLimits MyCorkscrew, -45.0, 45.0, 0.0, 10.0</b></font><br>
							<br>
							<b>EXAMPLE 2:</b> set a corkscrew with no rotational limits, and linear limits
							of (-5,5)<br>
							<font face="monospace"><b>NDB_SetCorkscrewLimits MyCorkscrew, 0.0, 0.0, -5.0, 5.0</b></font>
						</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetCorkscrewMotors"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetCorkscrewMotors</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetCorkscrewMotors corkscrew, angle_motor, dist_motor</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">angle_motor</td>
											<td>rotational motor acceleration (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">dist_motor</td>
											<td>linear motor acceleration (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the rotational and linear motor
							accelerations for a corkscrew joint. Set any of these to zero (0.0) to disable
							motorization for that part.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewMinAngle"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewMinAngle</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewMinAngle(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float min rotational angle for
								the corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min rotational angle value set
							to the corkscrew with the <a href="#NDB_SetCorkscrewLimits">NDB_SetCorkscrewLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewMaxAngle"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewMaxAngle</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewMaxAngle(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float max rotational angle for
								the corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max rotational angle value set
							to the corkscrew with the <a href="#NDB_SetCorkscrewLimits">NDB_SetCorkscrewLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewMinDist"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewMinDist</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewMinDist(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float min linear dist for the
								corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min linear distance value set to
							the corkscrew with the <a href="#NDB_SetCorkscrewLimits">NDB_SetCorkscrewLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewMaxDist"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewMaxDist</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewMaxDist(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float max linear dist for the
								corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max linear distance value set to
							the corkscrew with the <a href="#NDB_SetCorkscrewLimits">NDB_SetCorkscrewLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewAngleMotor"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewAngleMotor</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewAngleMotor(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float rotational motor accel for
								the corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the rotational motor acceleration
							set to the corkscrew with the <a href="#NDB_SetCorkscrewMotors">NDB_SetCorkscrewMotors</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetCorkscrewDistMotor"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetCorkscrewDistMotor</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetCorkscrewDistMotor(corkscrew)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">corkscrew</td>
											<td>index of the corkscrew (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float linear motor accel for the
								corkscrew.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the linear distance acceleration set
							to the corkscrew with the <a href="#NDB_SetCorkscrewMotors">NDB_SetCorkscrewMotors</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetUniversalLimits"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetUniversalLimits</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetUniversalLimits universal, min1, max1, min2, max2</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min1</td>
											<td>max rotational angle for pin 1 (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max1</td>
											<td>min rotational angle for pin 1 (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">min2</td>
											<td>min rotation angle for pin 2 (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">max2</td>
											<td>max rotation angle for pin 2 (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the limits for a universal joint. To
							disable limits for one of the parts, set the limits for that part to zero.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_SetUniversalMotorAccel"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_SetUniversalMotorAccel</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_SetUniversalMotorAccel universal, motor1, motor2</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">motor1</td>
											<td>rotational motor acceleration for pin1 (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">motor2</td>
											<td>rotational motor acceleration for pin2 (float)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the rotational motor accelerations for
							an universal joint. Set any of these to zero (0.0) to disable motorization for
							that part.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMin1"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMin1</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMin1(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float min rotational angle for
								pin1 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min rotational angle value set
							to the univeral with the <a href="#NDB_SetUniversalLimits">NDB_SetUniversalLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMax1"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMax1</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMax1(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float max rotational angle for
								pin1 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max rotational angle value set
							to the universal with the <a href="#NDB_SetUniversalLimits">NDB_SetUniversalLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMin2"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMin2</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMin2(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float min rotational angle for
								pin2 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the min rotational angle value set
							to the univeral with the <a href="#NDB_SetUniversalLimits">NDB_SetUniversalLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMax2"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMax2</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMax2(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float max rotational angle for
								pin2 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the max rotational angle value set
							to the universal with the <a href="#NDB_SetUniversalLimits">NDB_SetUniversalLimits</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMotor1"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMotor1</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMotor1(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float rotational motor accel for
								pin1 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the rotational motor acceleration
							set to the universal with the <a href="#NDB_SetUniversalMotorAccel">NDB_SetUniversalMotorAccel</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_GetUniversalMotor2"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_GetUniversalMotor2</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_GetUniversalMotor2(universal)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">universal</td>
											<td>index of the universal (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float rotational motor accel for
								pin2 of the universal.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns the rotational motor acceleration
							set to the universal with the <a href="#NDB_SetUniversalMotorAccel">NDB_SetUniversalMotorAccel</a>
							function.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_JointExist"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_JointExist</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
								NDB_JointExist( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>index to the joint (int)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: int (0-1)</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> returns a one "1" if the joint exists, zero
							"0" if it doesn't.</td>
					</tr>
				</tbody></table>
		<p>&nbsp;</p>
		<h2>Common Joint Commands</h2>
		<a name="NDB_NewtonJointSetCollisionState"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonJointSetCollisionState</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
							NDB_NewtonJointSetCollisionState joint, flag</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">joint</td>
										<td>ID of the joint (integer)</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">flag</td>
										<td>0 = collision off, 1= collision on</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> You can choose whether or not you want the
						bodies that are connected by a joint to collide with each other. Setting the
						flag to 1 will allow collision between the parent and child, while a flag of
						zero (default) disregards collision between the parent and child bodies.</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonJointGetCollisionState"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonJointGetCollisionState</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
								NDB_NewtonJointGetCollisionState( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: integer collision flag of the
								specified joint.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Returns the collision flag for the joint.
							This valuse can be set with the above command, <a href="#NDB_NewtonJointSetCollisionState">
								NDB_NewtonJointSetCollisionState</a></td>
					</tr>
				</tbody></table>
			<p>
		<a name="NDB_NewtonJointSetStiffness"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonJointSetStiffness</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
							NDB_NewtonJointSetStiffness joint, stiff#</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">joint</td>
										<td>ID of the joint (integer)</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">stiff#</td>
										<td>stiffness coeficient between 0.0 and 1.0</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b>Constraint keep bodies together by calculating the exact force necessary to
						cancel the relative acceleration between one or more common points fixed in the
						two bodies. The problem is that when the bodies drift apart due to numerical
						integration inaccuracies, the reaction force work to pull eliminated the error
						but at the expense of adding extra energy to the system, does violating the rule
						that constraint forces must be work less. This is a inevitable situation and the
						only think we can do is to minimize the effect of the extra energy by dampening
						the force by some amount. In essence the stiffness coefficient tell Newton
						calculate the precise reaction force by only apply a fraction of it to the joint
						point. And value of 1.0 will apply the exact force, and a value of zero will
						apply only 10 percent.<br><br>
						<b>Remarks:</b>
						The stiffness is set to a all around value (default is 0.9) that work well for most situation,
						however the application can play with these parameter to make finals adjustment.
						A high value will make the joint stronger but more prompt to vibration of
						instability; a low value will make the joint more stable but weaker.
						<br>
						</td>
				</tr>
			</tbody></table>
		<p>
		<a name="NDB_NewtonJointGetStiffness"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonJointGetStiffness</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
							float = NDB_NewtonJointGetStiffness( joint )</font></td>
				</tr>
				<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float value of stiffness coeficient
						</font></td>
					</tr>
				<tr>
					<td bgcolor="#fafafa">See <a href="#NDB_NewtonJointSetStiffness">NDB_NewtonJointSetStiffness</a> for details.</td>
				</tr>
			</tbody></table>
			<br>
			<br>
			<h2>Ball/Socket Joint Commands</h2>
			<a name="NDB_NewtonConstraintCreateBall"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateBall</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
								NDB_NewtonConstraintCreateBall( db_child, db_parent )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">child</td>
											<td>index of the <b>child</b> body.</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">parent</td>
											<td>index of the <b>parent</b> body.</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to pass values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the ball joint
								created.</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> This creates a ball/socket joint in the
							world. Before calling this command you must fill <b>temp vector 1</b> with the
							position of the joint in <b>global space</b>. Joints have heirarchy, so if the
							parent object moves, the child is dragged with it. To make an joint with no
							parent (the joint is "glued" in space, use zero "0" for parent.</td>
					</tr>
					<tr>
						<td bgcolor="#fafafa">
							See the demo programs for examples of joints in action.
						</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonBallSetConeLimits"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonBallSetConeLimits</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonBallSetConeLimits joint, cone_lim, twist_lim</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">cone_lim</td>
											<td>max swing angle (from the joint pin axis) in degrees (float)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">twist_lim</td>
											<td>max twist angle in degrees (float)/td&gt;</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to pass values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Sets the limits for the ball/socket joint.
							Before calling this function you must set <b>temp vector 1</b> with a
							normalized vector of the <i>direction</i> of the joint.</td>
					</tr>
					<tr>
						<td bgcolor="#fafafa">
							<b>EXAMPLE:</b> - set joint "BallJoint" pointing straight down, cone_lim =
							75deg, twist_lim = 5deg<br>
							<font face="monospace"><b>NDB_SetVector 0.0, -1.0, 0.0<br>
									NDB_NewtonBallSetConeLimits BallJoint, 75.0, 5.0</b></font>
						</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonBallGetJointAngle"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonBallGetJointAngle</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonBallGetJointAngle joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the current
							angle of the joint, based on the pin angle. This can be used for special
							effects, like a bell sound when the angle is greater than a certain value.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonBallGetJointOmega"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonBallGetJointOmega</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonBallGetJointOmega joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the angular
							(rotational) velocity of the joint.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonBallGetJointForce"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonBallGetJointForce</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonBallGetJointForce joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the total
							force asserted over the joint. This can be used to create special effects like
							breakable joints, etc.</td>
					</tr>
				</tbody></table>
		<p>
			<br>
			<br>
		</p>
		<h2>Hinge Joint Commands</h2>
		<a name="NDB_NewtonConstraintCreateHinge"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateHinge</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
							NDB_NewtonConstraintCreateHinge( child, parent )</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">child</td>
										<td>index of the <b>child</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">parent</td>
										<td>index of the <b>parent</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 1)</td>
										<td>temp vector used to pass values.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 2)</td>
										<td>temp vector used to pass values.</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the hinge joint
							created.</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> This creates a hinge joint in the world.
						Before calling this command you must fill <b>temp vector 1</b> with the
						position of the joint in <b>global space</b>. You must also fill <b>temp vector 2</b>
						with the direction of the pin. Joints have heirarchy, so if the parent object
						moves, the child is dragged with it. To make an joint with no parent (the joint
						is "glued" in space, use zero "0" for parent.</td>
				</tr>
				<tr>
					<td bgcolor="#fafafa">
						See the demo programs for examples of joints in action. Demo05 is an example of
						hinge joints.
					</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonHingeGetJointAngle"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonHingeGetJointAngle</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonHingeGetJointAngle( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float angle around the hinge pin</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonHingeGetJointOmega"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonHingeGetJointOmega</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonHingeGetJointOmega( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: angular velocity around the pin
								axis.</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonHingeGetJointForce"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonHingeGetJointForce</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonHingeGetJointForce joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the total
							force asserted over the joint. This can be used to create special effects like
							breakable joints, etc.</td>
					</tr>
				</tbody></table>
		<p>
			<br>
			<br>
		</p>
		<h2>Slider Joint Commands</h2>
		<a name="NDB_NewtonConstraintCreateSlider"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateSlider</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
							NDB_NewtonConstraintCreateSlider( _child, parent )</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">child</td>
										<td>index of the <b>child</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">parent</td>
										<td>index of the <b>parent</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 1)</td>
										<td>temp vector used to pass values.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 2)</td>
										<td>temp vector used to pass values.</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the slider joint
							created.</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> This creates a slider joint in the world.
						Before calling this command you must fill <b>temp vector 1</b> with the
						position of the joint in <b>global space</b>. You must also fill <b>temp vector 2</b>
						with the direction of the pin. Joints have heirarchy, so if the parent object
						moves, the child is dragged with it. To make an joint with no parent (the joint
						is "glued" in space, use zero "0" for parent.</td>
				</tr>
				<tr>
					<td bgcolor="#fafafa">
						See the demo programs for examples of joints in action.
					</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonSliderGetJointPosit"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonSliderGetJointPosit</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonSliderGetJointPosit( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float distance along the slider
								pin</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonSliderGetJointVeloc"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonSliderGetJointVeloc</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonSliderGetJointVeloc( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: velocity along the pin axis.</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonSliderGetJointForce"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonSliderGetJointForce</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonSliderGetJointForce joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the total
							force asserted over the joint. This can be used to create special effects like
							breakable joints, etc.</td>
					</tr>
				</tbody></table>
		<p>
			<br>
			<br>
		</p>
		<h2>Corkscrew Joint Commands</h2>
		<a name="NDB_NewtonConstraintCreateCorkscrew"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateCorkscrew</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
							NDB_NewtonConstraintCreateCorkscrew( child, parent )</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">child</td>
										<td>index of the <b>child</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">parent</td>
										<td>index of the <b>parent</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 1)</td>
										<td>temp vector used to pass values.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 2)</td>
										<td>temp vector used to pass values.</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the corkscrew joint
							created.</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> This creates a corkscrew joint in the world.
						A Corkscrew joint is a combination of a slider and a hinge into one joint.
						basically the child object can slide <i>along</i> the pin axis (Slider), and
						rotate <i>around</i> the pin axis (Hinge). Before calling this command you must
						fill <b>temp vector 1</b> with the position of the joint in <b>global space</b>.
						You must also fill <b>temp vector 2</b> with the direction of the pin. Joints
						have heirarchy, so if the parent object moves, the child is dragged with it. To
						make an joint with no parent (the joint is "glued" in space, use zero "0" for
						parent.</td>
				</tr>
				<tr>
					<td bgcolor="#fafafa">
						See the demo programs for examples of joints in action.
					</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonCorkscrewGetJointPosit"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonCorkscrewGetJointPosit</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonCorkscrewGetJointPosit( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float distance along the
								corkscrew pin</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonCorkscrewGetJointVeloc"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonCorkscrewGetJointVeloc</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonCorkscrewGetJointVeloc( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: velocity along the corkscrew pin.</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonCorkscrewGetJointAngle"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonCorkscrewGetJointAngle</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonCorkscrewGetJointAngle( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float angle around the corkscrew
								pin</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonCorkscrewGetJointOmega"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonCorkscrewGetJointOmega</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonCorkscrewGetJointOmega( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: angular velocity around the pin
								axis.</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonCorkscrewGetJointForce"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonCorkscrewGetJointForce</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonCorkscrewGetJointForce joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the total
							force asserted over the joint. This can be used to create special effects like
							breakable joints, etc.</td>
					</tr>
				</tbody></table>
		<p>
			<br>
			<br>
		</p>
		<h2>Universal Joint Commands</h2>
		<a name="NDB_NewtonConstraintCreateUniversal"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateUniversal</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
							NDB_NewtonConstraintCreateUniversal( child, parent )</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">child</td>
										<td>index of the <b>child</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">parent</td>
										<td>index of the <b>parent</b> body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 1)</td>
										<td>temp vector used to pass values.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 2)</td>
										<td>temp vector used to pass values.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 3)</td>
										<td>temp vector used to pass values.</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the universal joint
							created.</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> This creates a universal joint in the world.
						A universal joint is 2 hinges put together into one. A simple example of a
						universal joint is a car tire. It can rotate around the axle, and also steer.<br>
						Before calling this command you must fill <b>temp vector 1</b> with the
						position of the joint in <b>global space</b>. You must also fill <b>temp vector 2</b>
						and <b>temp vector 3</b> with the direction of the 2 pins. Joints have
						heirarchy, so if the parent object moves, the child is dragged with it. To make
						an joint with no parent (the joint is "glued" in space, use zero "0" for
						parent.</td>
				</tr>
				<tr>
					<td bgcolor="#fafafa">
						See the demo programs for examples of joints in action.
					</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonUniversalGetJointAngle0"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUnivsersalGetJointAngle0</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonUnivsersalGetJointAngle0( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float angle around pin1 of the
								universal</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonUniversalGetJointAngle1"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUnivsersalGetJointAngle1</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonUnivsersalGetJointAngle1( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: float angle around pin2 of the
								universal</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonUniversalGetJointOmega0"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUniversalGetJointOmega0</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonUniversalGetJointOmega0( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: rotational velocity around pin1
								of the universal</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonUniversalGetJointOmega1"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUniversalGetJointOmega1</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: float =
								NDB_NewtonUniversalGetJointOmega1( joint )</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: rotational velocity around pin2
								of the universal</font></td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonUniversalGetJointForce"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUniversalGetJointForce</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonUniversalGetJointForce joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> Fills <b>temp vector 1</b> with the total
							force asserted over the joint. This can be used to create special effects like
							breakable joints, etc.</td>
					</tr>
				</tbody></table>
		<p>
			<br>
			<br>
		</p>
		<h2>UpVector Joint Commands</h2>
		<a name="NDB_NewtonConstraintCreateUpVector"></a>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tbody>
				<tr>
					<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonConstraintCreateUpVector</font></h3>
					</td>
				</tr>
				<tr>
					<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax: int =
							NDB_NewtonConstraintCreateUpVector( body )</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><font face="monospace">
							<table border="0" width="95%">
								<tbody>
									<tr>
										<td width="5%"></td>
										<td width="15%">body</td>
										<td>index of the body.</td>
									</tr>
									<tr>
										<td width="5%"></td>
										<td width="15%">(vector 1)</td>
										<td>temp vector used to pass values.</td>
									</tr>
								</tbody></table>
						</font>
					</td>
				</tr>
				<tr>
					<td bgcolor="#dadada"><font face="monospace">returns: integer ID of the upvector joint
							created.</font></td>
				</tr>
				<tr>
					<td bgcolor="#fafafa"><b>Comments:</b> This creates a upvector joint in the world.
						An upvector joint is a special joint that will always keep a body aligned along
						its pin. This joint is useful for bodies representing characters, etc. Before
						calling this function you must fill <b>temp vector 1</b> with the pin direction
						for the upvector.</td>
				</tr>
				<tr>
					<td bgcolor="#fafafa">
						See the demo programs for examples of joints in action.
					</td>
				</tr>
			</tbody></table>
		<p>
			<a name="NDB_NewtonUpVectorGetPin"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUpVectorGetPin</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonUpVectorGetPin joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to return values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> This command fills <b>temp vector 1</b> with
							the pin direction of the specified upvector joint.</td>
					</tr>
				</tbody></table>
		<p>
			<a name="NDB_NewtonUpVectorSetPin"></a>
			<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
				border="1" width="85%">
				<tbody>
					<tr>
						<td bgcolor="#232323"><h3><font color="#fafafa">NDB_NewtonUpVectorSetPin</font></h3>
						</td>
					</tr>
					<tr>
						<td bgcolor="#747ff6"><font color="#ffffff" face="monospace">syntax:
								NDB_NewtonUpVectorSetPin joint</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><font face="monospace">
								<table border="0" width="95%">
									<tbody>
										<tr>
											<td width="5%"></td>
											<td width="15%">joint</td>
											<td>ID of the joint (integer)</td>
										</tr>
										<tr>
											<td width="5%"></td>
											<td width="15%">(vector 1)</td>
											<td>temp vector used to pass values.</td>
										</tr>
									</tbody></table>
							</font>
						</td>
					</tr>
					<tr>
						<td bgcolor="#dadada"><font face="monospace">returns: nothing</font></td>
					</tr>
					<tr>
						<td bgcolor="#fafafa"><b>Comments:</b> This command sets the pin direction of the
							specified upvector joint to the contents of <b>temp vector 1</b>. This command
							can be used to animate an upvector body by slightly changing the pin direction
							each loop.</td>
					</tr>
				</tbody></table>
		<p>
		</p>
	</body>
</html>
